package com.wave.wavesystem.serve.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryChain;
import com.wave.common.core.IWaveService;
import com.wave.wavesystem.serve.pojo.entity.Post;
import com.wave.wavesystem.serve.pojo.query.CenterSearchQuery;
import com.wave.wavesystem.serve.pojo.query.PostQuery;

import java.util.List;


public interface IPostService extends IWaveService<Post> {

    QueryChain<Post> getQueryChain(PostQuery query);

    QueryChain<Post> getQueryChain(PostQuery query,boolean isPublish);

    boolean approvalById(Long postId, String role);

    boolean rejectPost(Long postId, String rejectReason);

    Page<Post> search(CenterSearchQuery searchQuery);

}
